package 左哥算法.碰撞检测算法.BVH树;

public class BVHNode {
    public BoundingBox boundingBox;
    public BVHNode leftChild, rightChild;
    public Object object;

    public BVHNode(BoundingBox boundingBox, BVHNode leftChild, BVHNode rightChild, Object object) {
        this.boundingBox = boundingBox;
        this.leftChild = leftChild;
        this.rightChild = rightChild;
        this.object = object;
    }

    public boolean isLeaf() {
        return leftChild == null && rightChild == null;
    }
}
